<!DOCTYPE html>
<html>
<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE-edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Insert title here</title>
		
<style>
</style>
	<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.4.5/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.4.5/themes/icon.css">
	<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"/>
	<script type="text/javascript" src="js/jquery-easyui-1.4.5/jquery.min.js"></script>
	<script type="text/javascript" src="js/jquery-easyui-1.4.5/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="js/jquery-easyui-1.4.5/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript">
	$(function(){
		$("#btn").click(function(){
			if($("#msg").val()!=""){
				$.ajax({
					type:"post",
					url:"sendMessage",
					dataType:"json",
					data:{
						"message":$("#msg").val(),
						"getter":"0"
					},
					success:function(e){
						if(e.result){
							$.messager.show({
								title:'提示',
								width:300,
								height:200,
								msg:'推送成功',
								timeout:1000,
								showType:'slide'
								});
								$("#msg").val("");
						}
					}
				})
			}else{
				$.messager.show({
					title:'提示',
					width:300,
					height:200,
					msg:'未输入文字',
					timeout:1000,
					showType:'slide'
					});
			}
		})
	})
</script>
</head>
<body>
<div class="container">
<h4>请输入系统消息：</h4>
  			<div class="row">
  				<div class="col-md-3" style="margin-top: 5px;">
  					<textarea id="msg" class="form-control" style="height:100px"></textarea>
  				</div>
  			</div>
	<div class="row" style="margin-left:30px">
  				<div class="col-md-2" style="margin-top: 5px;"></div>
  				<div class="col-md-1" style="margin-top: 5px;">
  					<button id="btn" class="btn-warning">推送</button>
  				</div>
  			</div>
	


</div>
</body>
</html>